use model_graph_types::{
    database::{DataSource, DatabaseType},
    transform::{
        DataTransformOptions, DataTransformUnit, DataTransformer, DomainTransformerOptions,
        DomainTransformerUnit,
    },
};

/// 根据数据库获取到元数据
pub async fn transform(
    source: &DataSource,
    target: &DataSource,
    units: Vec<DataTransformUnit>,
    options: DataTransformOptions,
) -> anyhow::Result<()> {
    Ok(())
}

/// 根据数据库获取到元数据
pub async fn domain_transform(
    source: &DataSource,
    target: &DataSource,
    units: Vec<DomainTransformerUnit>,
    options: DomainTransformerOptions,
) -> anyhow::Result<()> {
    Ok(())
}

/// 清空领域
pub async fn clear_domain(
    meta_datasource: &DataSource,
    domains: Vec<String>,
) -> anyhow::Result<()> {
    Err(anyhow::anyhow!("不支持的数据类型"))
}

/// 删除领域
pub async fn delete_domain(
    meta_datasource: &DataSource,
    domains: Vec<String>,
) -> anyhow::Result<()> {
    Err(anyhow::anyhow!("不支持的数据类型"))
}
